package com.nongtai.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nongtai.pojo.entity.Spec;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SpecificationMapper extends BaseMapper<Spec> {

    /**
     * 根据商品id查出商品所有规格
     * @param id
     * @return
     */
    List<Spec> selectAllSpecificationByGoodsId(@Param("goodsId") Long id);
}
